﻿using SqlSugar;
namespace YOUYOU.Models.Entities.DBModels
{
    /// <summary>
    /// 管理方案表
    ///</summary>
    [SugarTable("management_scheme")]
    public class ManagementScheme
    {
        /// <summary>
        /// 自增id 
        ///</summary>
        [SugarColumn(ColumnName = "Id", IsIdentity = true, IsPrimaryKey = true)]
        public int Id { get; set; }
        /// <summary>
        /// 患者ID 
        ///</summary>
        [SugarColumn(ColumnName = "PatientId")]
        public string PatientId { get; set; }
        public string? DataMarker { get; set; }
        /// <summary>
        /// 制定日期 
        ///</summary>
        [SugarColumn(ColumnName = "FormulateDtae")]
        public DateTime? FormulateDtae { get; set; }
        ///// <summary>
        ///// 血压值 
        /////</summary>
        // [SugarColumn(ColumnName="BloodPressure"    )]
        // public int? BloodPressure { get; set; }
        ///<summary>
        /// 戒烟 
        ///</summary>
        [SugarColumn(ColumnName = "GiveUpSmoking")]
        public int? GiveUpSmoking { get; set; }
        /// <summary>
        /// 限酒 
        ///</summary>
        [SugarColumn(ColumnName = "AlcoholRestriction")]
        public int? AlcoholRestriction { get; set; }
        /// <summary>
        /// 主食控制 
        ///</summary>
        [SugarColumn(ColumnName = "StapleFoodControl")]
        public int? StapleFoodControl { get; set; }
        /// <summary>
        /// 食盐量 
        ///</summary>
        [SugarColumn(ColumnName = "SaltIntake")]
        public int? SaltIntake { get; set; }
        /// <summary>
        /// 食油量 
        ///</summary>
        [SugarColumn(ColumnName = "CookingOil")]
        public decimal? CookingOil { get; set; }
        /// <summary>
        /// 血压下降
        ///</summary>
        [SugarColumn(ColumnName = "BloodPressureDrop")]
        public string BloodPressureDrop { get; set; }
        /// <summary>
        /// 血糖下降
        ///</summary>
        [SugarColumn(ColumnName = "Hypoglycemia")]
        public string Hypoglycemia { get; set; }
        /// <summary>
        /// 体质指数 
        ///</summary>
        [SugarColumn(ColumnName = "Constitution")]
        public decimal? Constitution { get; set; }
        /// <summary>
        /// 运动量 
        ///</summary>
        [SugarColumn(ColumnName = "AmountExercise")]
        public int? AmountExercise { get; set; }
        /// <summary>
        /// 其他目标 
        ///</summary>
        [SugarColumn(ColumnName = "OtherGoals")]
        public string OtherGoals { get; set; }
        /// <summary>
        /// 饮食 
        ///</summary>
        [SugarColumn(ColumnName = "Diet")]
        public string Diet { get; set; }
        /// <summary>
        /// 起居 
        ///</summary>
        [SugarColumn(ColumnName = "DailyLife")]
        public string DailyLife { get; set; }
        /// <summary>
        /// 防跌倒措施 
        ///</summary>
        [SugarColumn(ColumnName = "PreventiveMeasure")]
        public string PreventiveMeasure { get; set; }
        /// <summary>
        /// 预防骨质疏松 
        ///</summary>
        [SugarColumn(ColumnName = "PreventOsteoporosis")]
        public string PreventOsteoporosis { get; set; }
        /// <summary>
        /// 运动方式管理 
        ///</summary>
        [SugarColumn(ColumnName = "SportsManagement")]
        public string SportsManagement { get; set; }
        /// <summary>
        /// 老年健康管理（0：正常，1：异常） 
        ///</summary>
        [SugarColumn(ColumnName = "HealthManagement")]
        public int? HealthManagement { get; set; }
        /// <summary>
        /// 慢病性患者健康管理（0：正常，1：异常） 
        ///</summary>
        [SugarColumn(ColumnName = "DiseaseManagement")]
        public int? DiseaseManagement { get; set; }
        /// <summary>
        /// 心态（0：乐观，1：低落） 
        ///</summary>
        [SugarColumn(ColumnName = "Mentality")]
        public int? Mentality { get; set; }
        /// <summary>
        /// 其他措施 
        ///</summary>
        [SugarColumn(ColumnName = "OhterMeasure")]
        public string OhterMeasure { get; set; }
        /// <summary>
        /// 药物疗法干预（0：继续遵医嘱服药，1：调整用药） 
        ///</summary>
        [SugarColumn(ColumnName = "DrugIntervention")]
        public int? DrugIntervention { get; set; }
        /// <summary>
        /// 中医药健康管理措施 
        ///</summary>
        [SugarColumn(ColumnName = "ManagementMeasures")]
        public string ManagementMeasures{ get; set; }
        /// <summary>
        /// 录入人(取医生id) 
        ///</summary>
        [SugarColumn(ColumnName = "EntryClerk")]
        public string EntryClerk { get; set; }
        /// <summary>
        /// 录入时间 
        ///</summary>
        [SugarColumn(ColumnName = "EntryTime")]
        public DateTime? EntryTime { get; set; }
        /// <summary>
        /// 最近修改人(取医生id) 
        ///</summary>
        [SugarColumn(ColumnName = "RecentReviser")]
        public string? RecentReviser { get; set; }
        /// <summary>
        /// 最后更新时间 
        ///</summary>
        [SugarColumn(ColumnName = "LastUpdateTime")]
        public DateTime? LastUpdateTime { get; set; }
        /// <summary>
        /// 目前症状 
        ///</summary>
        [SugarColumn(ColumnName = "PresentSymptom")]
        public string? PresentSymptom { get; set; }
        /// <summary>
        /// 健康管理目标 
        ///</summary>
        [SugarColumn(ColumnName = "HealthObjective")]
        public string HealthObjective { get; set; }
        /// <summary>
        /// 腰围
        ///</summary>
        [SugarColumn(ColumnName = "Waistline")]
        public int? Waistline { get; set; }
        /// <summary>
        /// 血压
        ///</summary>
        [SugarColumn(ColumnName = "BloodRessure")]
        public string? BloodRessure { get; set; }
        ///// <summary>
        ///// 创建日期 
        /////</summary>
        //[SugarColumn(ColumnName = "FoundDate")]
        //public DateTime? FoundDate { get; set; }

        /// <summary>
        /// 身高
        ///</summary>
        [SugarColumn(ColumnName = "Height")]
        public decimal? Height { get; set; }
        /// <summary>
        /// 体重
        ///</summary>
        [SugarColumn(ColumnName = "Weight")]
        public decimal? Weight { get; set; }
    }

    public class ManagementSchemeGw
    {
        /// <summary>
        /// 自增id 
        ///</summary>
        [SugarColumn(ColumnName = "Id", IsIdentity = true, IsPrimaryKey = true)]
        public int Id { get; set; }
        /// <summary>
        /// 患者ID 
        ///</summary>
        [SugarColumn(ColumnName = "PatientId")]
        public string PatientId { get; set; }
        public string IdCard { get; set; }
        /// <summary>
        /// 制定日期 
        ///</summary>
        [SugarColumn(ColumnName = "FormulateDtae")]
        public DateTime? FormulateDate { get; set; }
        ///// <summary>
        ///// 血压值 
        /////</summary>
        // [SugarColumn(ColumnName="BloodPressure"    )]
        // public int? BloodPressure { get; set; }
        ///<summary>
        /// 戒烟 
        ///</summary>
        [SugarColumn(ColumnName = "GiveUpSmoking")]
        public int? GiveUpSmoking { get; set; }
        /// <summary>
        /// 限酒 
        ///</summary>
        [SugarColumn(ColumnName = "AlcoholRestriction")]
        public int? AlcoholRestriction { get; set; }
        /// <summary>
        /// 主食控制 
        ///</summary>
        [SugarColumn(ColumnName = "StapleFoodControl")]
        public int? StapleFoodControl { get; set; }
        /// <summary>
        /// 食盐量 
        ///</summary>
        [SugarColumn(ColumnName = "SaltIntake")]
        public int? SaltIntake { get; set; }
        /// <summary>
        /// 食油量 
        ///</summary>
        [SugarColumn(ColumnName = "CookingOil")]
        public decimal? CookingOil { get; set; }
        /// <summary>
        /// 血压下降
        ///</summary>
        [SugarColumn(ColumnName = "BloodPressureDrop")]
        public string BloodPressureDrop { get; set; }
        /// <summary>
        /// 血糖下降
        ///</summary>
        [SugarColumn(ColumnName = "Hypoglycemia")]
        public string Hypoglycemia { get; set; }
        /// <summary>
        /// 体质指数 
        ///</summary>
        [SugarColumn(ColumnName = "Constitution")]
        public decimal? Constitution { get; set; }
        /// <summary>
        /// 运动量 
        ///</summary>
        [SugarColumn(ColumnName = "AmountExercise")]
        public int? AmountExercise { get; set; }
        /// <summary>
        /// 其他目标 
        ///</summary>
        [SugarColumn(ColumnName = "OtherGoals")]
        public string OtherGoals { get; set; }
        /// <summary>
        /// 饮食 
        ///</summary>
        [SugarColumn(ColumnName = "Diet")]
        public string Diet { get; set; }
        /// <summary>
        /// 起居 
        ///</summary>
        [SugarColumn(ColumnName = "DailyLife")]
        public string DailyLife { get; set; }
        /// <summary>
        /// 防跌倒措施 
        ///</summary>
        [SugarColumn(ColumnName = "PreventiveMeasure")]
        public string PreventiveMeasure { get; set; }
        /// <summary>
        /// 预防骨质疏松 
        ///</summary>
        [SugarColumn(ColumnName = "PreventOsteoporosis")]
        public string PreventOsteoporosis { get; set; }
        /// <summary>
        /// 运动方式管理 
        ///</summary>
        [SugarColumn(ColumnName = "SportsManagement")]
        public string SportsManagement { get; set; }
        /// <summary>
        /// 老年健康管理（0：正常，1：异常） 
        ///</summary>
        [SugarColumn(ColumnName = "HealthManagement")]
        public string? HealthManagement { get; set; }
        /// <summary>
        /// 慢病性患者健康管理（0：正常，1：异常） 
        ///</summary>
        [SugarColumn(ColumnName = "DiseaseManagement")]
        public string? DiseaseManagement { get; set; }
        /// <summary>
        /// 心态（0：乐观，1：低落） 
        ///</summary>
        [SugarColumn(ColumnName = "Mentality")]
        public string? Mentality { get; set; }
        /// <summary>
        /// 其他措施 
        ///</summary>
        [SugarColumn(ColumnName = "OhterMeasure")]
        public string OhterMeasure { get; set; }
        /// <summary>
        /// 药物疗法干预（0：继续遵医嘱服药，1：调整用药） 
        ///</summary>
        [SugarColumn(ColumnName = "DrugIntervention")]
        public string? DrugIntervention { get; set; }
        /// <summary>
        /// 中医药健康管理措施 
        ///</summary>
        [SugarColumn(ColumnName = "ManagementMeasures")]
        public string ManagementMeasures { get; set; }
        /// <summary>
        /// 录入人(取医生id) 
        ///</summary>
        [SugarColumn(ColumnName = "EntryClerk")]
        public string EntryClerk { get; set; }
        /// <summary>
        /// 录入时间 
        ///</summary>
        [SugarColumn(ColumnName = "EntryTime")]
        public DateTime? EntryTime { get; set; }
        /// <summary>
        /// 最近修改人(取医生id) 
        ///</summary>
        [SugarColumn(ColumnName = "RecentReviser")]
        public string? RecentReviser { get; set; }
        /// <summary>
        /// 最后更新时间 
        ///</summary>
        [SugarColumn(ColumnName = "LastUpdateTime")]
        public DateTime? LastUpdateTime { get; set; }
        /// <summary>
        /// 目前症状 
        ///</summary>
        [SugarColumn(ColumnName = "PresentSymptom")]
        public string? PresentSymptom { get; set; }
        /// <summary>
        /// 健康管理目标 
        ///</summary>
        [SugarColumn(ColumnName = "HealthObjective")]
        public string HealthObjective { get; set; }
        /// <summary>
        /// 腰围
        ///</summary>
        [SugarColumn(ColumnName = "Waistline")]
        public int? Waistline { get; set; }
        /// <summary>
        /// 血压
        ///</summary>
        [SugarColumn(ColumnName = "BloodRessure")]
        public string? BloodRessure { get; set; }
        ///// <summary>
        ///// 创建日期 
        /////</summary>
        //[SugarColumn(ColumnName = "FoundDate")]
        //public DateTime? FoundDate { get; set; }

        /// <summary>
        /// 身高
        ///</summary>
        [SugarColumn(ColumnName = "Height")]
        public decimal? Height { get; set; }
        /// <summary>
        /// 体重
        ///</summary>
        [SugarColumn(ColumnName = "Weight")]
        public decimal? Weight { get; set; }
    }
}
